<template>
  <div>
    <h1>我是home页</h1>
  <el-form ref="form" :model="form" label-width="80px" class="form">
     <el-form-item label="账号">
    <el-input v-model="form.name"></el-input>
  </el-form-item>
   <el-form-item label="密码">
    <el-input v-model="form.pasw" type="password"></el-input>
  </el-form-item>
  <el-button>登录</el-button>
  <el-button>重置</el-button>
    </el-form>
     </div>
</template>

<script>
export default {
  data () {
    return {
      form: {
        name: '',
        pasw: ''
      }
    }
  },
  methods: {
    onSubmit () {
      console.log('submit!')
    }
  }
}
</script>

<style lang="scss" scoped>
.form{
  width:400px;
  margin: 0 auto;
}
</style>
